Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put libc as a ext dependency to compile with rust-beta #2

Merged
merged 2 commits into from Apr 7, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1,11 +1,14 @@
[package]

name = "termios"
version = "0.0.4"
version = "0.0.5"
authors = ["David Cuddeback <david.cuddeback@gmail.com>"]
description = "Safe bindings for the termios library."
license = "MIT"
homepage = "https://github.com/dcuddeback/termios-rs"
repository = "https://github.com/dcuddeback/termios-rs.git"
readme = "README.md"
keywords = ["termios", "tty", "terminal", "posix"]

[dependencies]
libc = "0.1.5"
@@ -19,20 +19,18 @@ Add `termios` as a dependency in `Cargo.toml`:

```toml
[dependencies]
termios = "0.0.4"
termios = "0.0.5"
libc = "0.1.5"
```

Import the `termios` crate and any symbols needed from `termios`. You will also probably need
`libc::c_int` for file descriptors and `std::io::Result` to propagate errors.

```rust
#![feature(libc)]

extern crate termios;
extern crate libc;

use std::io;

use libc::c_int;
use termios::*;

@@ -1,5 +1,3 @@
#![feature(libc)]

extern crate libc;

use std::io;